package vista;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import controlador.*;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JFPrincipal extends javax.swing.JFrame {
	private JPanel pnlPrincipal;
	private JButton btnNivelAvanzado;
	private JButton btnNivelIntermedio;
	private JLabel lbl2;
	private JButton btnFraseIntermedia;
	private JLabel lblCrear;
	private JButton btnFraseAvanzada;
	private JButton btnNivelBasico;
	private JButton btnFraseBasica;
	private JButton btnJugar;


	public JFPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("B I E N V E N I D O S");
			this.setFont(new java.awt.Font("Purisa",1,10));
			{
				pnlPrincipal = new JPanel();
				getContentPane().add(pnlPrincipal, BorderLayout.CENTER);
				pnlPrincipal.setLayout(null);
				pnlPrincipal.setPreferredSize(new java.awt.Dimension(633, 357));
				{
					btnJugar = new JButton();
					pnlPrincipal.add(btnJugar);
					btnJugar.setText("J U G A R");
					btnJugar.setFont(new java.awt.Font("Purisa",1,14));
					btnJugar.setBounds(257, 100, 150, 30);

				}
				
				{
					btnFraseBasica = new JButton();
					pnlPrincipal.add(btnFraseBasica);
					btnFraseBasica.setText("Frase Basica");
					btnFraseBasica.setFont(new java.awt.Font("Purisa",1,14));
					btnFraseBasica.setBounds(53, 283, 175, 30);
				}
				{
					btnNivelBasico = new JButton();
					pnlPrincipal.add(btnNivelBasico);
					btnNivelBasico.setText("Nivel Basico");
					btnNivelBasico.setFont(new java.awt.Font("Purisa",1,14));
					btnNivelBasico.setBounds(95, 193, 150, 30);
				}
				{
					btnFraseIntermedia = new JButton();
					pnlPrincipal.add(btnFraseIntermedia);
					btnFraseIntermedia.setText("Frase Intermedia");
					btnFraseIntermedia.setFont(new java.awt.Font("Purisa",1,14));
					btnFraseIntermedia.setBounds(251, 283, 175, 30);
				}
				{
					btnFraseAvanzada = new JButton();
					pnlPrincipal.add(btnFraseAvanzada);
					btnFraseAvanzada.setText("Frase Avanzada");
					btnFraseAvanzada.setFont(new java.awt.Font("Purisa",1,14));
					btnFraseAvanzada.setBounds(446, 283, 175, 30);
				}
				{
					lblCrear = new JLabel();
					pnlPrincipal.add(lblCrear);
					lblCrear.setText("C R E A R :");
					lblCrear.setBounds(272, 234, 115, 36);
					lblCrear.setFont(new java.awt.Font("Purisa",1,16));
				}
				{
					lbl2 = new JLabel();
					pnlPrincipal.add(lbl2);
					lbl2.setText("SCORES");
					lbl2.setBounds(306, 151, 101, 20);
				}
				{
					btnNivelIntermedio = new JButton();
					pnlPrincipal.add(btnNivelIntermedio);
					btnNivelIntermedio.setText("Nivel Intermedio");
					btnNivelIntermedio.setFont(new java.awt.Font("Purisa",1,14));
					btnNivelIntermedio.setBounds(284, 193, 150, 30);
					
				}
				{
					btnNivelAvanzado = new JButton();
					pnlPrincipal.add(btnNivelAvanzado);
					btnNivelAvanzado.setText("Nivel Avanzado");
					btnNivelAvanzado.setFont(new java.awt.Font("Purisa",1,14));
					btnNivelAvanzado.setBounds(463, 193, 150, 30);
					
				}
			}
			pack();
			this.setSize(659, 390);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	public void addListener(ActionListener actionListener){
		btnJugar.addActionListener(actionListener);
		btnFraseBasica.addActionListener(actionListener);
		btnFraseIntermedia.addActionListener(actionListener);
		btnFraseAvanzada.addActionListener(actionListener);
		btnNivelBasico.addActionListener(actionListener);
		btnNivelIntermedio.addActionListener(actionListener);
		btnNivelAvanzado.addActionListener(actionListener);
		}
}
